//
//  MHTimeNumberFormatter.m
//  ShanPao
//
//  Created by jiangjing on 2/18/16.
//  Copyright © 2016 imohoo.com. All rights reserved.
//

#import "MHTimeNumberFormatter.h"
//#import "MHShortCut.h"

@implementation MHTimeNumberFormatter
- ( NSString *)stringFromNumber:(NSNumber *)number {
    
    return @"";
    
}
- ( NSNumber *)numberFromString:(NSString *)string {
    if (nil == string) {
        return nil;
    }
    NSArray *arr = [string componentsSeparatedByString:@"'"];
    if ([arr count] > 1) {
        NSInteger m = [[arr objectAtIndex:0] integerValue];
        NSInteger s = [[arr objectAtIndex:1] integerValue];
        
        return @(m*60 + s);
    }
    
    return nil;
}
@end
